import 'package:flutter/material.dart';
import 'package:flutter_stort/widget/load_state_view.dart';
import 'package:webview_flutter/webview_flutter.dart';


class WebDetailsPage extends StatefulWidget {
  String title;
  String url;
  WebDetailsPage({this.title,this.url});
  @override
  _WebDetailsPageState createState() =>
      _WebDetailsPageState();
}

class _WebDetailsPageState extends State<WebDetailsPage> {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(
          widget.title,
          style: TextStyle(
            fontSize: 20,
          ),
        ),
      ),
      body: WebView(
        initialUrl: widget.url,
        javascriptMode: JavascriptMode.unrestricted,
      ),
    );
  }
}
